package info.osmatrix.explorer.component.descriptor
{
	import mx.collections.ICollectionView;
	import mx.collections.XMLListCollection;
	import mx.controls.treeClasses.DefaultDataDescriptor;
	import mx.controls.treeClasses.ITreeDataDescriptor;

	public class FolderTreeDescriptor extends DefaultDataDescriptor implements ITreeDataDescriptor
	{

		public function FolderTreeDescriptor(branchField:String = "isBranch")
		{
			super();
		}

		override public function getChildren(node:Object, model:Object=null):ICollectionView
		{
			var childDir:XMLListCollection = new XMLListCollection();
			childDir.source = XML(node).dir;
			return childDir;
		}
		

	}
}